#include "kernel.h"
struct tty_list{
	unsigned long data;
	unsigned long head;
	unsigned long tail;
	struct  task_struct  *proc_list;
	char buf[1024];
};
struct tty_struct
{
	struct 	termios termio;
	int 	pgrp;
	int 	stopped;
	void 	(*write)(struct tty_struct *tty);
	struct 	tty_list read_list;
	struct 	tty_list write_list;
	struct 	tty_list help;
};

/*
 * 和posix兼容
 */
/*
 * termernal is what kind of program
 */
struct termios{
	unsigned long c_iflag;  /* input mode flags */
	unsigned long c_oflag;  /* output mode flags */
	unsigned long c_cflag;  /* control mode flags */
	unsigned long c_lflag; 	/* local mode flags */
	unsigned long c_line; 	/* line discipline   what is this*/
	unsigned long c_cc[]    /* control character */
};
